//
//  WBHomeViewController.swift
//  tangbinWeibo
//
//  Created by 唐斌 on 2016/12/25.
//  Copyright © 2016年 唐斌. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController
{

    override func viewDidLoad()
    {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    func showFriends()
    {
        print(#function)
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }

}

// MARK: - 设置界面
extension WBHomeViewController
{
    
    /// 重写父类的方法
    override func setupUI() {
        super.setupUI()
        
        // 设置导航栏按钮
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", style: .plain, target: self, action: #selector(showFriends))
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", fontSize: 16, target: self, action: #selector(showFriends))
    }
}


























